package com.Business.service;

import com.Business.dao.LandDao;
import com.Pojo.Land;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;
import java.util.Map;

/**
 * Created by XingYang on 2019/3/14.
 */
@Service
public class LandServiceImpl implements LandService {
    @Autowired
    LandDao landDao;

    @Override
    public void AddLand(Land land) {
        landDao.AddLand(land);
    }

    @Override
    public Map getLandByLid(String id) {
        return landDao.getLandByLid(id);
    }

    @Override
    public List<Land> getLandsByProjectNo(String projectNo) {
        return landDao.getLandsByProjectNo(projectNo);
    }

    @Override
    public List<Map> getLandsInfByProjectNo(String projectNo) {
        return landDao.getLandsInfByProjectNo(projectNo);
    }

    @Override
    public void BindProject(Map map) {
        landDao.BindProject(map);
    }

    @Override
    public void updateLandByLid(Map map) {
        landDao.updateLandByLid(map);
    }
}
